public class Coin
{
	
	private int value;
	
	public Coin(int value)
	{
		this.value = value;
	}
	
	public int getValue()
	{
		return value;
	}
	
	public boolean equals(Object obj)
	{
		if (!(obj instanceof Coin))
			return false;
		
		return (value == ((Coin)obj).getValue());
	}
	
	public String toString()
	{
		return "Coin(" + getValue() + ")";
	}
	
}
